import http from '@/utils/http'

/**
 * 获取专业列表
 */
export const getListMajorApi = async(param) => {
  return http.get('/api/class/getMajorListById', param)
}

/**
 * 新增班级
 */
export const addClassApi = async(param) => {
  return http.post('/api/class', param)
}

/**
 * 编辑班级
 */
export const editClassApi = async(param) => {
  return http.put('/api/class', param)
}

/**
 * 删除班级
 */
export const deleteClassApi = async(param) => {
  return http.delete('/api/class', param)
}

/**
 * 获取专业列表
 */
export const getClassApi = async(param) => {
  return http.get('/api/class/list', param)
}

/**
 * 根据专业id查询学院id
 */
export const getCollegeIdApi = async(param) => {
  return http.get('/api/class/getCollegeId', param)
}

/**
 * 根据学院id查询专业列表
 */
export const getMajorListApi = async(param) => {
  return http.get('/api/class/getMajorList', param)
}

